let path = require("path");
let webpack = require("webpack");
module.exports = {
    entry: ["babel-polyfill", "./index.js"],
    output: {
        path: path.resolve(__dirname, "build"),
        filename: "app.bundle.js"
    },
    module: {
        loaders: [
            {
                test: /\.js$/,
                loader: "babel-loader",
                query: {
                    presets: "env"
                }
            }
        ]
    }
}